package com.oracle.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWsIdIsNull() {
            addCriterion("ws_id is null");
            return (Criteria) this;
        }

        public Criteria andWsIdIsNotNull() {
            addCriterion("ws_id is not null");
            return (Criteria) this;
        }

        public Criteria andWsIdEqualTo(Integer value) {
            addCriterion("ws_id =", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdNotEqualTo(Integer value) {
            addCriterion("ws_id <>", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdGreaterThan(Integer value) {
            addCriterion("ws_id >", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ws_id >=", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdLessThan(Integer value) {
            addCriterion("ws_id <", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdLessThanOrEqualTo(Integer value) {
            addCriterion("ws_id <=", value, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdIn(List<Integer> values) {
            addCriterion("ws_id in", values, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdNotIn(List<Integer> values) {
            addCriterion("ws_id not in", values, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdBetween(Integer value1, Integer value2) {
            addCriterion("ws_id between", value1, value2, "wsId");
            return (Criteria) this;
        }

        public Criteria andWsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ws_id not between", value1, value2, "wsId");
            return (Criteria) this;
        }

        public Criteria andSsIdIsNull() {
            addCriterion("ss_id is null");
            return (Criteria) this;
        }

        public Criteria andSsIdIsNotNull() {
            addCriterion("ss_id is not null");
            return (Criteria) this;
        }

        public Criteria andSsIdEqualTo(Integer value) {
            addCriterion("ss_id =", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdNotEqualTo(Integer value) {
            addCriterion("ss_id <>", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdGreaterThan(Integer value) {
            addCriterion("ss_id >", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ss_id >=", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdLessThan(Integer value) {
            addCriterion("ss_id <", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdLessThanOrEqualTo(Integer value) {
            addCriterion("ss_id <=", value, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdIn(List<Integer> values) {
            addCriterion("ss_id in", values, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdNotIn(List<Integer> values) {
            addCriterion("ss_id not in", values, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdBetween(Integer value1, Integer value2) {
            addCriterion("ss_id between", value1, value2, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ss_id not between", value1, value2, "ssId");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIsNull() {
            addCriterion("ss_dormbuild is null");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIsNotNull() {
            addCriterion("ss_dormbuild is not null");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildEqualTo(String value) {
            addCriterion("ss_dormbuild =", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotEqualTo(String value) {
            addCriterion("ss_dormbuild <>", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildGreaterThan(String value) {
            addCriterion("ss_dormbuild >", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildGreaterThanOrEqualTo(String value) {
            addCriterion("ss_dormbuild >=", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLessThan(String value) {
            addCriterion("ss_dormbuild <", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLessThanOrEqualTo(String value) {
            addCriterion("ss_dormbuild <=", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLike(String value) {
            addCriterion("ss_dormbuild like", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotLike(String value) {
            addCriterion("ss_dormbuild not like", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIn(List<String> values) {
            addCriterion("ss_dormbuild in", values, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotIn(List<String> values) {
            addCriterion("ss_dormbuild not in", values, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildBetween(String value1, String value2) {
            addCriterion("ss_dormbuild between", value1, value2, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotBetween(String value1, String value2) {
            addCriterion("ss_dormbuild not between", value1, value2, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andWxryIsNull() {
            addCriterion("wxry is null");
            return (Criteria) this;
        }

        public Criteria andWxryIsNotNull() {
            addCriterion("wxry is not null");
            return (Criteria) this;
        }

        public Criteria andWxryEqualTo(String value) {
            addCriterion("wxry =", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryNotEqualTo(String value) {
            addCriterion("wxry <>", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryGreaterThan(String value) {
            addCriterion("wxry >", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryGreaterThanOrEqualTo(String value) {
            addCriterion("wxry >=", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryLessThan(String value) {
            addCriterion("wxry <", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryLessThanOrEqualTo(String value) {
            addCriterion("wxry <=", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryLike(String value) {
            addCriterion("wxry like", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryNotLike(String value) {
            addCriterion("wxry not like", value, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryIn(List<String> values) {
            addCriterion("wxry in", values, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryNotIn(List<String> values) {
            addCriterion("wxry not in", values, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryBetween(String value1, String value2) {
            addCriterion("wxry between", value1, value2, "wxry");
            return (Criteria) this;
        }

        public Criteria andWxryNotBetween(String value1, String value2) {
            addCriterion("wxry not between", value1, value2, "wxry");
            return (Criteria) this;
        }

        public Criteria andReasonIsNull() {
            addCriterion("reason is null");
            return (Criteria) this;
        }

        public Criteria andReasonIsNotNull() {
            addCriterion("reason is not null");
            return (Criteria) this;
        }

        public Criteria andReasonEqualTo(String value) {
            addCriterion("reason =", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotEqualTo(String value) {
            addCriterion("reason <>", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThan(String value) {
            addCriterion("reason >", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThanOrEqualTo(String value) {
            addCriterion("reason >=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThan(String value) {
            addCriterion("reason <", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThanOrEqualTo(String value) {
            addCriterion("reason <=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLike(String value) {
            addCriterion("reason like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotLike(String value) {
            addCriterion("reason not like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonIn(List<String> values) {
            addCriterion("reason in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotIn(List<String> values) {
            addCriterion("reason not in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonBetween(String value1, String value2) {
            addCriterion("reason between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotBetween(String value1, String value2) {
            addCriterion("reason not between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andCjTimeIsNull() {
            addCriterion("cj_time is null");
            return (Criteria) this;
        }

        public Criteria andCjTimeIsNotNull() {
            addCriterion("cj_time is not null");
            return (Criteria) this;
        }

        public Criteria andCjTimeEqualTo(Date value) {
            addCriterion("cj_time =", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotEqualTo(Date value) {
            addCriterion("cj_time <>", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeGreaterThan(Date value) {
            addCriterion("cj_time >", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cj_time >=", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeLessThan(Date value) {
            addCriterion("cj_time <", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeLessThanOrEqualTo(Date value) {
            addCriterion("cj_time <=", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeIn(List<Date> values) {
            addCriterion("cj_time in", values, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotIn(List<Date> values) {
            addCriterion("cj_time not in", values, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeBetween(Date value1, Date value2) {
            addCriterion("cj_time between", value1, value2, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotBetween(Date value1, Date value2) {
            addCriterion("cj_time not between", value1, value2, "cjTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeIsNull() {
            addCriterion("up_time is null");
            return (Criteria) this;
        }

        public Criteria andUpTimeIsNotNull() {
            addCriterion("up_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpTimeEqualTo(Date value) {
            addCriterion("up_time =", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotEqualTo(Date value) {
            addCriterion("up_time <>", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeGreaterThan(Date value) {
            addCriterion("up_time >", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("up_time >=", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeLessThan(Date value) {
            addCriterion("up_time <", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeLessThanOrEqualTo(Date value) {
            addCriterion("up_time <=", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeIn(List<Date> values) {
            addCriterion("up_time in", values, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotIn(List<Date> values) {
            addCriterion("up_time not in", values, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeBetween(Date value1, Date value2) {
            addCriterion("up_time between", value1, value2, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotBetween(Date value1, Date value2) {
            addCriterion("up_time not between", value1, value2, "upTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}